-
Notifications
You must be signed in to change notification settings - Fork 128
feat(util-invariant): Convert to use util-logger under the hood #2418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…` and add optional logger level parameter. Update package dependencies to include `@onflow/util-logger`.
|
Hey @chasefleming could you review the changes and check if everything's alright. Thanks. |
Hi @jribbink, thanks for the review! The optional loggerLevel parameter was actually one of the specific requirements by @chasefleming in the original issue (#1488). From the issue description: If syntax is the same, then default to util logger throwing an error That's why I implemented it this way: By default (no logger level specified), it behaves exactly as before - throwing errors |
Co-authored-by: Jordan Ribbink <17958158+jribbink@users.noreply.github.com>
hey @jribbink could you please review the changes. |
hey @jribbink if you have time, please could you check if everything's alright |
Description
This PR addresses issue #1488 by converting the
util-invariant
package to useutil-logger
under the hood instead of directconsole.error
calls.Changes
util-invariant
to useutil-logger
for logging@onflow/util-logger
as a dependencyon-message-from-fcl.js
Implementation Details
Testing
The changes maintain the existing functionality while adding the ability to:
Fixes #1488